package com.shanzmoo.db.product.mapper;

import com.shanzmoo.db.product.entity.ProductCategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shanzmoo.db.product.entity.dto.CatsDto;
import com.shanzmoo.db.product.entity.dto.ProductCategoryDTO;

import java.util.List;

/**
 * <p>
 * 商品分类 Mapper 接口
 * </p>
 *
 * @author Xueqz
 * @since 2020-12-07
 */
public interface ProductCategoryMapper extends BaseMapper<ProductCategoryEntity> {

    List<CatsDto> getCatIdAndParents();

    List<ProductCategoryDTO> getAllCategory();
}
